package com.wondersgroup.esclient.service;

import java.util.List;

import com.wondersgroup.esclient.emen.HttpMethod;
import com.wondersgroup.esclient.modle.QueryParam;

/**
 * 返回ES原始数据查询服务类
 * @author Walker
 *
 */
public interface ESOriginalDataService {

	/**
	 * 根据条件查询ES数据
	 * @param queryParams
	 * @return
	 * @throws Exception
	 */
    public String find(List<QueryParam> queryParams) throws Exception;
	
    /**
     * 分页查询ES数据
     * @param queryParams
     * @param from
     * @param size
     * @return
     * @throws Exception
     */
	public String findByPage(List<QueryParam> queryParams, int from, int size) throws Exception;
	
	/**
	 * Http请求ES
	 * @param url
	 * @param params
	 * @param httpMethod
	 * @return
	 * @throws Exception
	 */
	public String sendHttpReqest(String url, String params, HttpMethod httpMethod) throws Exception;
	
	
}
